{include file = 'header.tpl'}
{$category}
{assign var="showFlag" value=0}
{section name=i loop=$forum} 
	{if $forum[i].type eq 'forum'}
		{if $showFlag eq 0}
			<div class="forum_forum_sub">
			<p><a href="index.php?list-forum-{$forum[i].plate}">{$forum[i].name}</a></p>
			{if ($forum[i].simple neq '1') && ($user.groupid gt 1)}
				<P><A href="index.php?doc-create-{$forum[i].fid}" target="_blank"><IMG alt="发帖" src="style/default/Foren.png" border=0></IMG></A></P> 
			{/if}
			{$showFlag = 1}
		{/if}
		{section name=j loop=$sub}
			{if $sub[j].fup eq $forum[i].fid}
				<p><a href="index.php?list-sub-{$sub[j].plate}">{$sub[j].name}</a></p>
				<hr style="border:1px dashed red; height:1px"/>
			{/if}
		{/section}
		</div>
		
	{/if}
{/section}
<div class="forum_subject">
{section name=m loop=$forumList} 
	{assign var=forumListN value=$forumList[m]}
	{section name=n loop=$forumListN}
		<p style='margin-left:10px'><img src="{if $forumListN[n].origin eq 0}{$origin.0}{elseif $forumListN[n].origin eq 1}{$origin.1}{elseif $forumListN[n].origin eq 2}{$origin.2}{elseif $forumListN[n].origin eq 3}{$origin.3}{/if}" ><a href="index.php?doc-view-{$forumListN[n].pid}" target="_blank">{$forumListN[n].subject}</a>
		<span style="float:right; margin-right:15px;">{$forumListN[n].dateline|date_format:'%Y-%m-%d %H:%M:%S'}</span>
		</p>
	{/section}
{/section}
</div>
{include file = 'footer.tpl'}
